const fs = require("fs");
const getFile = (path) => {
    return new Promise((resolve, reject) => {
        fs.readFile(path, function (err, data) {
            if (err) {
                reject(err)
            }
            resolve(data.toString())
        })
    })
}

module.exports = { getFile }